package com.wanxi.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wanxi.dto.ResultDTO;
import com.wanxi.model.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleDao extends BaseMapper<Role> {
    List<Role> findAll();

    Integer addPermissionOfRole(Long id, Long roleId, Long permissionId);

    Integer deletePermissionOfRole(Role role);

    Role findById(Role role);
}
